﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WeChatConfig.aspx.cs" Inherits="Admin_Manage_WeChatConfig" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
   <link rel="shortcut icon" href="favicon.ico">
     <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">

    <link href="../50/style.css" rel="stylesheet" />
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script type="text/javascript" src="../../js/jquery.form.js"></script>
    
    <link href="../css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
    <script src="../Js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="../50/function.js"></script>

    <style>
        .imgbox img{max-width:120px;}
    </style>
     <script type="text/javascript">



       $(function () {
   

            var imgurl = document.getElementById("txtImgUrl").value;
            if (imgurl != "")
             {
            $(".imgbox").empty();
            $(".imgbox").css({ background: "none" });
            $(".imgbox").append("<img src=\"" + imgurl + "\" />");
            }
         
            
        });


    </script>
</head>
<body class="gray-bg">
    <form id="form1" runat="server">
    <div class="wrapper animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
            
                   <div class="ibox-title">
                        <h5>微信配置</h5>          
                        
                    </div>
                    <div class="ibox-content">
                       <div class="panel-body">               
                      <div class="form-group">


             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">微信公众号：</label>
                       <div class="col-sm-6">
                        <asp:TextBox ID="txtWeChatName" runat="server" class="form-control" required=""  aria-required="true"  
                              MaxLength="250" HintTitle="微信公众号的名称" HintInfo="微信公众号名称，腾讯公众号申请的使用名称。"></asp:TextBox>
                       </div>
              </div>

             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">开发者ID(AppID)：</label>
                       <div class="col-sm-6">
                    <asp:TextBox ID="txtAPPID" runat="server" class="form-control"  required="" aria-required="true"    size="25" 
            maxlength="250" HintTitle="AppID" HintInfo="微信后台 开发->基本配置"></asp:TextBox>
                       </div>
              </div>

    
             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">开发者密码(AppSecret)：</label>
                       <div class="col-sm-6">
                     <asp:TextBox ID="txtAPPSECRET" runat="server" required="" aria-required="true"  class="form-control" 
                         size="25"   maxlength="250" HintTitle="APPSECRET" HintInfo="微信后台 开发->基本配置"></asp:TextBox>
   
                       </div>
              </div>

                <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">消息托管</label>
             
              </div>              

             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">消息加解密密钥(EncodingAESKey)：</label>
                       <div class="col-sm-6">
                 <asp:TextBox ID="txtKEY" runat="server" class="form-control"  required="" 
            maxlength="250" HintTitle="消息加解密密钥" HintInfo="微信后台 开发->基本配置->服务器配置"></asp:TextBox>
                       </div>
              </div>
      
           <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">支付配置</label>
             
              </div>

           <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">支付API：</label>
                       <div class="col-sm-6">
                     <asp:TextBox ID="txtPayAPI" runat="server" class="form-control" aria-required="true"
            maxlength="250" HintTitle="支付API" HintInfo="在商户平台中。"></asp:TextBox>
                       </div>
              </div>


            <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">MCHID：</label>
                       <div class="col-sm-6">
                     <asp:TextBox ID="txtMCHID" runat="server" class="form-control" aria-required="true"
            maxlength="250" HintTitle="商户号" HintInfo="商户号（必须配置）,公众号中商户号。"></asp:TextBox>
                       </div>
              </div>

                                  <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">支付URL：</label>
                       <div class="col-sm-6">
                    <asp:TextBox ID="txtPayUrl" runat="server"  aria-required="true"   class="form-control"  size="25" maxlength="250" HintTitle="" HintInfo="搜索引擎可根据网站设置的描述信息，字符小于等于250位字符。" 
           ></asp:TextBox>
                       </div>
              </div>

           
             <div class="col-sm-12" style="margin-top: 1em;">
                  <label class="col-sm-2 control-label">默认使用：</label>
                       <div class="col-sm-6">
                 <asp:CheckBox ID="CBLog"   runat="server" Checked="true" />
     
                       </div>
              </div>


                IP白名单 要把服务器IP配置进去！
服务器地址 (URL) http://cyyt.50cms.com/gate.aspx
令牌(Token) lnkj

               <div class="form-group" style="margin-top: 2em;">
                            <div class="col-sm-8 col-sm-offset-3" style="margin-top: 2em;">
         <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="btn btn-primary" onclick="btnSave_Click" />
  &nbsp;
  <input type="button" class="btn btn-white" id="btnCancel" onclick="myclose();" value="取消" />
                            </div>
             </div>
  

                        </div>
                    </div>
                </div>
            </div>
       
    </div>
   
    </form>

      <!-- 全局js -->

    <script src="../js/bootstrap.min.js?v=3.3.6"></script>



            <!-- iCheck -->
    <script src="../js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green'

            });
        });
    </script>

    <script type="text/javascript" src="../js/layer/layer.js"></script>



    <link href="../css/plugins/sweetalert/sweetalert.css" rel="stylesheet" />
    <script src="../Js/plugins/sweetalert/sweetalert.min.js"></script>

    <script type="text/javascript">
      


                if (typeof (myError) != "undefined") {
                    swal({ title: "出错", text: Msg, type: "error", html: true, showConfirmButton: false, timer: 5000 });
                };

                if (typeof (success) != "undefined") {

                    swal({ title: "成功", type: "success", showConfirmButton: false, timer: 2000 }
                        ,function () {
                            var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
                            parent.layer.close(index); //执行关闭
                        }
                  );
                }
                function myclose() {
                    var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
                    parent.layer.close(index); //执行关闭
                }

    
    
    </script>

</body>
</html>
